// 04myCenter/01myWallet/02enterpriseChange/enterprisebankCard/enterprisebankCard.js
var co = require('../../../../resource/js/common.js')
var app = getApp()
var _this

Page({
   data: {
      bankList: ''
   },

   onLoad: function (options) {
      _this = this;
      this.getBankList()
   },

   onShow: function () {
      this.getBankList()
   },

   getBankList: function () {
      var url = 'bankcard/ba/getList';
      co.getShareApi(url, {
         User_ID: app.Data.userInfo.User_ID
      }, function (res) {
         if (res.code == 0) {
            _this.setData({
               bankList: res.data
            })
         }
      })
   },

   //跳转到添加银行卡
   addBankCard: function () {
      wx.navigateTo({
         url: '/04myCenter/01myWallet/02enterpriseChange/enterprisebankCard/addEnterprisebankCard/addEnterprisebankCard?scene=Biz_ID.' + app.Data.bizInfo.Biz_ID + '.From_Page.bankCard'
      })
   }

})